package com.son.hotel.response;

import cn.hutool.core.annotation.Alias;
import jakarta.validation.constraints.AssertTrue;
import lombok.Data;
import org.springframework.web.bind.annotation.RestController;

import java.util.Objects;

@Data
public class RoomDetailInfoResp {

    @Alias("房间号")
    private int roomId;

    @Alias("房间类型")
    private String roomName;

    @Alias("状态")
    private int status;

    @Alias("价格")
    private int price;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        RoomDetailInfoResp that = (RoomDetailInfoResp) o;
        return roomId == that.roomId && status == that.status && price == that.price && Objects.equals(roomName, that.roomName);
    }

    @Override
    public int hashCode() {
        return Objects.hash(roomId, roomName, status, price);
    }
}
